package com.lh.controller;


import com.lh.Service.BasicService;
import com.lh.bean.Basic;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;


import java.util.List;

@Controller
@RequestMapping("/basic")
public class BasicController {
    @Resource
    private BasicService basicService;

    @RequestMapping("/basicList1")
    @ResponseBody
    private List<Basic> queryBasbasicListicList(){
        List<Basic> basicList = basicService.queryBasicList();
        return basicList;
    }

    @RequestMapping("/basicList")
    @ResponseBody
    private List<Basic> queryBasicByBasicId(){
        List<Basic> basicList = basicService.queryBasicByBasicId();
        return basicList;
    }
}
